<template>
  <div class="app-container">
    <div class="app-container-inner">
      <div class="header">
        <div class="export"><button class="btn">导出报表</button></div>
        <div class="search"
          ><label>查询条件</label
          ><el-select v-model="value" class="mr10" placeholder="请选择">
            <el-option v-for="item in options3" :key="item.value" :value="item.value" /> </el-select
          ><el-select v-model="value" class="mr10" placeholder="请选择">
            <el-option v-for="item in options4" :key="item.value" :value="item.value" />
          </el-select>
          <el-input v-model="input" placeholder="检索" class="input-with-select">
            <template #prepend>
              <el-select class="w100" v-model="select" placeholder="选择">
                <el-option label="工单编号" value="1" />
                <el-option label="工单编号" value="2" />
                <el-option label="工单编号" value="3" />
              </el-select>
            </template>
            <template #append>
              <el-button :icon="Search" />
            </template> </el-input></div
      ></div>
      <div class="main">
        <table class="table">
          <colgroup>
            <col />
            <col />
            <col />
            <col width="120" />
            <col />
            <col width="120" />
            <col />
            <col width="60" />
          </colgroup>
          <thead
            ><tr>
              <th>工单编号</th>
              <th>收付款编号</th>
              <th>客户/网点</th>
              <th>收付金额</th>
              <th>收付类型</th>
              <th>收支状态</th>
              <th>创建时间</th>
              <th>操作</th>
            </tr></thead
          >
          <tbody>
            <tr v-for="(item, index) in table" :key="index"
              ><td>{{ item.id }}</td
              ><td>{{ item.id }}</td
              ><td>{{ item.id }}</td
              ><td class="mush">+￥{{ item.id }}</td
              ><td>{{ item.id }}</td
              ><td class="state">{{ item.id }}</td
              ><td>{{ item.id }}</td>
              <td>
                <div class="btns">
                  <button class="btn order">工单</button>
                </div></td
              ></tr
            >
          </tbody>
          <tfoot>
            <tr
              ><td colspan="14" rowspan="1"
                ><div class="footer">
                  <el-pagination
                    :page-sizes="[10, 20, 30, 40, 50, 60, 70, 80, 90]"
                    :background="background"
                    layout="total, sizes, prev, pager, next, jumper"
                    :total="200"
                    @size-change="handleSizeChange"
                    @current-change="handleCurrentChange"
                  /> </div></td
            ></tr>
          </tfoot>
          <tbody class="tbd-f12" id="tbody"></tbody>
        </table>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
  import { ref } from 'vue'
  import { Search } from '@element-plus/icons-vue'
  import pageComponentName from '@/config/page-component-name'

  defineOptions({
    name: pageComponentName.fundManager.shouldCollectAndPay,
  })

  const value = ref('')
  const input = ref('')
  const select = ref('')
  const background = ref(true)
  const handleSizeChange = (val: number) => {}
  const handleCurrentChange = (val: number) => {}
  const options = [
    {
      value: '全部类型',
    },
  ]
  const options2 = [
    {
      value: '全部品牌',
    },
  ]
  const options3 = [
    {
      value: '全部分类',
    },
  ]
  const options4 = [
    {
      value: '全部网点',
    },
  ]

  const table = [
    {
      id: 666,
    },
    {
      id: 666,
    },
    {
      id: 666,
    },
    {
      id: 666,
    },
    {
      id: 666,
    },
    {
      id: 666,
    },
    {
      id: 666,
    },
    {
      id: 666,
    },
    {
      id: 666,
    },
    {
      id: 666,
    },
    {
      id: 666,
    },
    {
      id: 666,
    },
    {
      id: 666,
    },
    {
      id: 666,
    },
    {
      id: 666,
    },
  ]
</script>

<style scoped lang="scss">
  @import './index';
</style>
